
package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for ykjhZy.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="ykjhZyForm"
 */
public class YkjhZyForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _jhzybh = null;
   private java.lang.String _jhdh = null;
   private java.lang.String _nd = null;
   private java.lang.String _jhmc = null;
   private java.lang.String _zjxzDm = null;
   private java.lang.String _yslxDm = null;
   private java.lang.String _jhxzDm = null;
   private java.lang.String _jhlxDm = null;
   private java.lang.String _sblxDm = null;
   private java.lang.String _jhztDm = null;
   private java.lang.String _jhwzDm = null;
   private java.lang.String _sbsj = null;
   private java.lang.String _hzjhbh = null;
   private java.lang.String _zjhzbh = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _dbjhBz = null;
   private java.lang.String _dbdwbh = null;
   private java.lang.String _bhyy = null;
   private java.lang.String _lsbhztDm = null;
   private java.lang.String _hzjhBz = null;
   private java.lang.String _yhzBz = null;
   private java.lang.String _czjhBz = null;
   private java.lang.String _sbczBz = null;
   private java.lang.String _zkzsBz = null;
   private java.lang.String _yydBz = null;
   private java.lang.String _fsztDm = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;
   private java.lang.String _czpzwh = null;
   /**zouyalei 2012-10-29 */
   private java.lang.String _pch = null;
   private java.lang.String _jcdwpch = null;

   /**
    * Standard constructor.
    */
   public YkjhZyForm() {
   }

   /**
    * Returns the jhzybh
    *
    * @return the jhzybh
    */
   public java.lang.String getJhzybh() {
      return _jhzybh;
   }

   /**
    * Sets the jhzybh
    *
    * @param jhzybh the new jhzybh value
    */
   public void setJhzybh(java.lang.String jhzybh) {
      _jhzybh = jhzybh;
   }
   /**
    * Returns the jhdh
    *
    * @return the jhdh
    */
   public java.lang.String getJhdh() {
      return _jhdh;
   }

   /**
    * Sets the jhdh
    *
    * @param jhdh the new jhdh value
    */
   public void setJhdh(java.lang.String jhdh) {
      _jhdh = jhdh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the jhmc
    *
    * @return the jhmc
    */
   public java.lang.String getJhmc() {
      return _jhmc;
   }

   /**
    * Sets the jhmc
    *
    * @param jhmc the new jhmc value
    */
   public void setJhmc(java.lang.String jhmc) {
      _jhmc = jhmc;
   }
   /**
    * Returns the zjxzDm
    *
    * @return the zjxzDm
    */
   public java.lang.String getZjxzDm() {
      return _zjxzDm;
   }

   /**
    * Sets the zjxzDm
    *
    * @param zjxzDm the new zjxzDm value
    */
   public void setZjxzDm(java.lang.String zjxzDm) {
      _zjxzDm = zjxzDm;
   }
   /**
    * Returns the yslxDm
    *
    * @return the yslxDm
    */
   public java.lang.String getYslxDm() {
      return _yslxDm;
   }

   /**
    * Sets the yslxDm
    *
    * @param yslxDm the new yslxDm value
    */
   public void setYslxDm(java.lang.String yslxDm) {
      _yslxDm = yslxDm;
   }
   /**
    * Returns the jhxzDm
    *
    * @return the jhxzDm
    */
   public java.lang.String getJhxzDm() {
      return _jhxzDm;
   }

   /**
    * Sets the jhxzDm
    *
    * @param jhxzDm the new jhxzDm value
    */
   public void setJhxzDm(java.lang.String jhxzDm) {
      _jhxzDm = jhxzDm;
   }
   /**
    * Returns the jhlxDm
    *
    * @return the jhlxDm
    */
   public java.lang.String getJhlxDm() {
      return _jhlxDm;
   }

   /**
    * Sets the jhlxDm
    *
    * @param jhlxDm the new jhlxDm value
    */
   public void setJhlxDm(java.lang.String jhlxDm) {
      _jhlxDm = jhlxDm;
   }
   /**
    * Returns the sblxDm
    *
    * @return the sblxDm
    */
   public java.lang.String getSblxDm() {
      return _sblxDm;
   }

   /**
    * Sets the sblxDm
    *
    * @param sblxDm the new sblxDm value
    */
   public void setSblxDm(java.lang.String sblxDm) {
      _sblxDm = sblxDm;
   }
   /**
    * Returns the jhztDm
    *
    * @return the jhztDm
    */
   public java.lang.String getJhztDm() {
      return _jhztDm;
   }

   /**
    * Sets the jhztDm
    *
    * @param jhztDm the new jhztDm value
    */
   public void setJhztDm(java.lang.String jhztDm) {
      _jhztDm = jhztDm;
   }
   /**
    * Returns the jhwzDm
    *
    * @return the jhwzDm
    */
   public java.lang.String getJhwzDm() {
      return _jhwzDm;
   }

   /**
    * Sets the jhwzDm
    *
    * @param jhwzDm the new jhwzDm value
    */
   public void setJhwzDm(java.lang.String jhwzDm) {
      _jhwzDm = jhwzDm;
   }
   /**
    * Returns the sbsj
    *
    * @return the sbsj
    */
   public java.lang.String getSbsj() {
      return _sbsj;
   }

   /**
    * Sets the sbsj
    *
    * @param sbsj the new sbsj value
    */
   public void setSbsj(java.lang.String sbsj) {
      _sbsj = sbsj;
   }
   /**
    * Returns the hzjhbh
    *
    * @return the hzjhbh
    */
   public java.lang.String getHzjhbh() {
      return _hzjhbh;
   }

   /**
    * Sets the hzjhbh
    *
    * @param hzjhbh the new hzjhbh value
    */
   public void setHzjhbh(java.lang.String hzjhbh) {
      _hzjhbh = hzjhbh;
   }
   /**
    * Returns the zjhzbh
    *
    * @return the zjhzbh
    */
   public java.lang.String getZjhzbh() {
      return _zjhzbh;
   }

   /**
    * Sets the zjhzbh
    *
    * @param zjhzbh the new zjhzbh value
    */
   public void setZjhzbh(java.lang.String zjhzbh) {
      _zjhzbh = zjhzbh;
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the dbjhBz
    *
    * @return the dbjhBz
    */
   public java.lang.String getDbjhBz() {
      return _dbjhBz;
   }

   /**
    * Sets the dbjhBz
    *
    * @param dbjhBz the new dbjhBz value
    */
   public void setDbjhBz(java.lang.String dbjhBz) {
      _dbjhBz = dbjhBz;
   }
   /**
    * Returns the dbdwbh
    *
    * @return the dbdwbh
    */
   public java.lang.String getDbdwbh() {
      return _dbdwbh;
   }

   /**
    * Sets the dbdwbh
    *
    * @param dbdwbh the new dbdwbh value
    */
   public void setDbdwbh(java.lang.String dbdwbh) {
      _dbdwbh = dbdwbh;
   }
   /**
    * Returns the bhyy
    *
    * @return the bhyy
    */
   public java.lang.String getBhyy() {
      return _bhyy;
   }

   /**
    * Sets the bhyy
    *
    * @param bhyy the new bhyy value
    */
   public void setBhyy(java.lang.String bhyy) {
      _bhyy = bhyy;
   }
   /**
    * Returns the lsbhztDm
    *
    * @return the lsbhztDm
    */
   public java.lang.String getLsbhztDm() {
      return _lsbhztDm;
   }

   /**
    * Sets the lsbhztDm
    *
    * @param lsbhztDm the new lsbhztDm value
    */
   public void setLsbhztDm(java.lang.String lsbhztDm) {
      _lsbhztDm = lsbhztDm;
   }
   /**
    * Returns the hzjhBz
    *
    * @return the hzjhBz
    */
   public java.lang.String getHzjhBz() {
      return _hzjhBz;
   }

   /**
    * Sets the hzjhBz
    *
    * @param hzjhBz the new hzjhBz value
    */
   public void setHzjhBz(java.lang.String hzjhBz) {
      _hzjhBz = hzjhBz;
   }
   /**
    * Returns the yhzBz
    *
    * @return the yhzBz
    */
   public java.lang.String getYhzBz() {
      return _yhzBz;
   }

   /**
    * Sets the yhzBz
    *
    * @param yhzBz the new yhzBz value
    */
   public void setYhzBz(java.lang.String yhzBz) {
      _yhzBz = yhzBz;
   }
   /**
    * Returns the czjhBz
    *
    * @return the czjhBz
    */
   public java.lang.String getCzjhBz() {
      return _czjhBz;
   }

   /**
    * Sets the czjhBz
    *
    * @param czjhBz the new czjhBz value
    */
   public void setCzjhBz(java.lang.String czjhBz) {
      _czjhBz = czjhBz;
   }
   /**
    * Returns the sbczBz
    *
    * @return the sbczBz
    */
   public java.lang.String getSbczBz() {
      return _sbczBz;
   }

   /**
    * Sets the sbczBz
    *
    * @param sbczBz the new sbczBz value
    */
   public void setSbczBz(java.lang.String sbczBz) {
      _sbczBz = sbczBz;
   }
   /**
    * Returns the zkzsBz
    *
    * @return the zkzsBz
    */
   public java.lang.String getZkzsBz() {
      return _zkzsBz;
   }

   /**
    * Sets the zkzsBz
    *
    * @param zkzsBz the new zkzsBz value
    */
   public void setZkzsBz(java.lang.String zkzsBz) {
      _zkzsBz = zkzsBz;
   }
   /**
    * Returns the yydBz
    *
    * @return the yydBz
    */
   public java.lang.String getYydBz() {
      return _yydBz;
   }

   /**
    * Sets the yydBz
    *
    * @param yydBz the new yydBz value
    */
   public void setYydBz(java.lang.String yydBz) {
      _yydBz = yydBz;
   }
   /**
    * Returns the fsztDm
    *
    * @return the fsztDm
    */
   public java.lang.String getFsztDm() {
      return _fsztDm;
   }

   /**
    * Sets the fsztDm
    *
    * @param fsztDm the new fsztDm value
    */
   public void setFsztDm(java.lang.String fsztDm) {
      _fsztDm = fsztDm;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }

   	public java.lang.String getCzpzwh() {
		return _czpzwh;
	}

	public void setCzpzwh(java.lang.String _czpzwh) {
		this._czpzwh = _czpzwh;
	}

	public java.lang.String getPch(){
		return this._pch;
	}
	
	public void setPch(java.lang.String pch){
		_pch = pch;
	}
	
	public java.lang.String getJcdwpch(){
		return this._jcdwpch;
	}
	
	public void setJcdwpch(java.lang.String jcdwpch){
		_jcdwpch = jcdwpch;
	}
	
/**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getJhzybh() == null) {
         errors.add("jhzybh", new ActionError("error.jhzybh.required"));
      }
      if(getJhdh() == null) {
         errors.add("jhdh", new ActionError("error.jhdh.required"));
      }
      if(getNd() == null) {
         errors.add("nd", new ActionError("error.nd.required"));
      }
      if(getZjxzDm() == null) {
         errors.add("zjxzDm", new ActionError("error.zjxzDm.required"));
      }
      if(getYslxDm() == null) {
         errors.add("yslxDm", new ActionError("error.yslxDm.required"));
      }
      if(getJhxzDm() == null) {
         errors.add("jhxzDm", new ActionError("error.jhxzDm.required"));
      }
      if(getJhlxDm() == null) {
         errors.add("jhlxDm", new ActionError("error.jhlxDm.required"));
      }
      if(getSblxDm() == null) {
         errors.add("sblxDm", new ActionError("error.sblxDm.required"));
      }
      if(getJhztDm() == null) {
         errors.add("jhztDm", new ActionError("error.jhztDm.required"));
      }
      if(getDwbh() == null) {
         errors.add("dwbh", new ActionError("error.dwbh.required"));
      }
      if(getDbjhBz() == null) {
         errors.add("dbjhBz", new ActionError("error.dbjhBz.required"));
      }
      if(getLsbhztDm() == null) {
         errors.add("lsbhztDm", new ActionError("error.lsbhztDm.required"));
      }
      if(getHzjhBz() == null) {
         errors.add("hzjhBz", new ActionError("error.hzjhBz.required"));
      }
      if(getYhzBz() == null) {
         errors.add("yhzBz", new ActionError("error.yhzBz.required"));
      }
      if(getCzjhBz() == null) {
         errors.add("czjhBz", new ActionError("error.czjhBz.required"));
      }
      if(getZkzsBz() == null) {
         errors.add("zkzsBz", new ActionError("error.zkzsBz.required"));
      }
      if(getYydBz() == null) {
         errors.add("yydBz", new ActionError("error.yydBz.required"));
      }
      if(getFsztDm() == null) {
         errors.add("fsztDm", new ActionError("error.fsztDm.required"));
      }
      if(getPch() == null){
    	 errors.add("pch", new ActionError("error.pch.required"));
      }
      if(getJcdwpch() == null){
    	 errors.add("jcdwpch",new ActionError("error.jcdwpch.required"));
      }
      // TODO test format/data
      return errors;
   }
}
